remove trailing comma in define array