calc algorithm have to be tested