added rudimentary list processing