fixed a typo
moved data method  to public scope