removed risk of empty top layer