fix delete id + output formatting