minor cleaning old codes in plot