collision method (not tested)