added function to users