removed define queries