adjusing cdk implementation
fixing bug in cdk