stopped error funtion from returning NaN
added record miss function to data recorder