complete return type of profile and combine it with templates