code modified to not ask for profile