collision handlind added (sort of).