changed method params with object