implemented post queries