removed duplicate top and bottom layers