added end area to complement begin area