passing purity as number instead of string