input directive initial value code optimization