plot script in good shape