made a method in UserPool more efficient