code cleaned up
add test for hints by test-kitchen