added inverted script