moved first query call)