offending import was removed
partition calculation should consider negative number possibility