some control for errors