fixed typo; added implementation