refactor gasoline