add listing function works