fixed duplicate errors