fix for DeprecationWarning: classic int division