adding error print