added numbering on the right side and added a check for the length