refactored state methods of features