updates before styles