trying to write the profile