cleaned up code got to change the query in the required section