edited: input format