make collisions work properly