working check hand function