The mechanism of habituation