updated util with collision functions