get rid of some code, as per iOS tutorial