fixed typo and tagged old method as deprecated