cost and complexity