add isEnabled method