added some collision logic