added Rubocop function with better experience