create cat.
fix bug
fix perm