adding error handling for non-IO data input
error handling non-IO data input