fix bad formatting & errors