modifying query