refactor sketch work