how does inspection work