working collision and demo