removed code redirect profile