refacto ending