use getLastResult method