errors in for