changed script to input