Fixing redefinition of result