compress and remove plinks