solved CONS problem