added check for valid effect