remove isObject function