removed debugging code from the model