oops, should've check list instance with isinstance().