still trying to make query work