refactor style assignments