error message when reference is empty in impute