fixed the performance issue caused by the frags because of collision
checks.  cleanup some code