fixed warnings reported by 'inspect'