initial get() function