removed file write query