idw executable function