make dolist work