refactor style reset function