took out code for appdelegate