changed prior back to avoid division by zero