bug fix on tortoise calculation