before style changes