add sex parsing logic