added middle method