in_states method is now static method