new way of getting the functions of a user