moving hand from test to lib