put colision handdling in functions