function renaming to avoid conflicts with python built-ins