ahah, stupid math bug