remaking collision check