adding getError