update the sex property