added compress of a list