added code to process defaults that pass into argument