using mapcar to fix curly braces on Windows