added changes to DG and custom code