walk past function if next in path is nested