checked and corrected calculations