adding begin end shape stuff