modified plotting code to include time in plot title