code before change of how to find right user