removed unused function in places_gen