remove warning about missing return value; fix typo