format list helper