updated deprecated functions
Merge pull request #22 from yokomizor/updated_deprecated_functions

updated deprecated functions