validation errors i example programs fixed