working on adjacent relation