moved print statement to end of code

need to do all calculations, including plotting first