removed non-clear getLastError reference