remove unused
refactoring to allow failed executions of methods
refactor to make it more idiomatic