fix for float instead of integer division