pg 214 -- having issues with locals. need to fix