extract getResult method