changes for edit query