added getError