mtags changed to overwite in place