added inverted layer