not resulting in the correct values for calling a function
put in debuging write statments
fixed issues that where causing invalid functions and labels