attempt to fix TypeMismatch error