remove redundant code for a priori collision detection