use format and inputFormat