pre update stuff