removed reference to $model (which broke it on live server)