Some collision functions added