fixes #23 should be checked