validating opacity