fixing redefinition error