small optimizations for targeting system