added neighbors functionallity