trying to check collisions
tail stealing fix (possible :( )