added arrayToWorkspaceFunction