fixed massive performance issues with collision checker