common get method