finish template of profile