now it works and does it reasonable time since I fixed a big bug
tests
added a test
changed testing method a bit