added the wonderfully homemade CONS function, under system