sunny added plotting codes