rationalise the use of the index in the model. don't use -1 as an indicator of null. moving towards a model that doesn't assume integers