added new function to users object