fixing 'protected-access' by renaming _State; fixed 'redefined-outer-name'