bag formatting