sex is a biological function