getting it to output object