function Code Inspection Errors resolved