light travels in a straight path, why does it get refracted?