implemented getResult()