fixed formatting, and now inserting error at end of container
removed remnants of other modification