rewriting assets