added formatting routine for aligned data