code cleanup
Merge pull request #158 from janschoenherr/patch-1

code cleanup
looks fine for now