modify code fragment