proper when syntax