remove unnecessary creating an instance variable of number