The development of mechatronic device for hand rehabilitation