fixing utterly wrong computation >.<