add basic querying and parametrize the querying