inputFunction