added inspect condition
updated based on PR
more changes based on PR
Merge pull request #7 from HouseTrip/add-inspect-case

added inspect condition