taking out extra prints when errors are returned