refactored parent to next