tested and wrote more queries