fix deep code