cleaned up inverted layer instructions