made set function for user