not working for more than 2 digits