better error location