vertical and horizontal subdivision implemented