add missing when