working collision (finally)