replaced parameter from object type to array type