generalized collision and entities