patch 1, fixed rubocop errors