working on issue #19 and issue #23