fixing issue 58 and broken pull request in issue 76 use match instead of repr

for populating the list