adding a debug param for the process method