refactored gulp code