fixed some errors due to post-decimal place numbers