taking shapefile as input