avoid divide by zero
whoops I meant the opposite