added pet variable text and closure compile