adding lastSgv API