rewrites file declaration