small big in environment rewriting code