error in error checking in stat model. Should allow larger ids