some modify for res