update listing function