fixs edge chasing so the tests works