removed verify function. created a check for [error]. cleaned up the output.