fixed duplicate cases