Fixed value passing for functions

removed the % surrounding variables being passed to functions