do not use apply() because it is no longer present in python3