optimizing user class