finish the listing error part, adjust the calling of the function"