add self. to global variables