input function has been defined