minor refactoring, rename method for consistency
fixes #11. comparing of arrays not working as expected.