What undergrad should I choose to go to a good GRAD?

<p>hesdjjim,
My dream is to attend stanford or berkeley. I believe I can do to it however my profile lacks research and I think that is why I was rejected. Getting in to that master’s program will help me get good recs from fairly well known professors along with giving me research experience. The alternative is to go back to my home country and look for research opportunities. The question is, if I chose to do my master’s at a top 20 school would it decrease my chances at getting into stanford or berkeley? I have heard that they overly prefer their own master’s students or people coming directly from bachelor’s</p>