modifies rubocop indications for curly braces for hash
refactors method exec_capture