remove incorrect logic