remove unnecessary set variable