added 2 error printf