working now for numbers biggers than 9.