remove wrong duplication code