old functions updated and get function done