updated export all products logic