making formatInpu public