created prettify and duration methods