refactor style device