added lookup function to users