added attached collision (can't test yet; doesnt crash though)