fixed typo in helper method