made query a little faster in profile