handle case of undefined answers