removed temporary testing code from Model