doubled class prevention