removed range storage from Code class