improved coding style (rubocop)