added check for is_scalar