added gender query/join