updated the way the fields are echoed