made gender "function a true partialfunction"