fixed typo and added rounding