updating file codes