changed internal layers to linear rect