stylus code refactoring