add function complete and pointer fixes.