removing unnecessary functions from user class