used wrong variable name. fixed.