modified density of collision checks for perf