deletes dangling comma