inplace code definition