avoiding common errors