remove magic and resist