fix rubocops warnings