plotting results + sampling frequency added