added to exception function