changing to double for plotting with new matlab versions