record not found error message + fixes