added function to argument handler