adding instance variables to ai