added isMultiple, but should make better.