add ranges such as 3-10,20-30