mapM-dash updated to solve the issues on stack overflow