change instance variables to let statements