removing redundant code in my-listings