add tests
change return FALSE to exception if input have wrong format