need to account for empty so we're not dividing by zero, getting some exception