update functionality, now outputting correct formats