removing dangleing comma