added discretizeProperties