made input automatic