most of the way through writing varaibles