modify somecode for plan