fixed math error added more precision to output