pulling out decorate
chaning plot function remapping syntax from f(d) to f:d