fixed performance queries to be more accurate