use format and inputFormat
Merge pull request #3 from eychu/master

use format and inputFormat