solve #20, print warning when object has NA