code refactoring, axis labels