change warn to error