get rid of echo query