Total internal reflection at work