fix: redeclaring function