changing collision logic