calculation fix