adjusting for changes in pkgs: sp and spatstat