changed how output was generated