fixed insert formatting; other misc adjustments