attaching getCenter() function to terminal elements