fixed bug with adjacancy