refactor gemfile