fixed problem with broken up calculation