fix a bug for duplication of name.
enable bb simulation for contrast oc.
minor changes