something before changeing model