fixed previous problem, but then there is a nil problem in interpolating mosrep2