fixed duplicate declarations