updated registerInspected method
Merge pull request #5210 from gayanhewa/patch-2

updated registerInspected method