implemented printWorkItemHandlers function