ref exception