implemented depth search