improved collision checking perf