changed function handle label to 'model'