fix protoype function detail