removed query call