shifting back to a stock rom alone wont do it
when you first boot the phone it will show it has been unlocked and say custom...
whatever program u used to root your phone, u need to unroot it
but the only reason not to use a custom rom is if you are trading it in or need warranty service...