build profile and edit profile