added explicit 'this' keyword for certain functions