fixed getUnanswered function
commit