implemented one-level dependency walker