avoid lambda syntax in do-cases