avoiding errors