working with bad formatting