direct file changes to function