improve location of error