input & sound's code