prepare input line