calculate hand func added and tested