declared errors in wrong scope x.x