input function added