hand functions, changed Type -> Rank