minor tweak because query is too slow