print changed to exception