context typo again. function was being called on the wrong object.