now working, all variables except stack vals are working