loading profile with another function