Refactor numbers to avoid for loop

Save some CPU cycles and remove empty spaces