initial data and query working