figured out total internal reflection