moving plot out of environment into own file