refactoring ubuntu14