optimized collide and wall loops