fixed the stupid query