get function is done, untested.