added some collision functions