add isSimple method