worked again on the pdoroutine