simplifying the query
setting up the proper user properties