upgrade to new library dilate() method