fixing to work with pcl1.7