input creation optiomization