addition of middle layer