added code to allow default paramater to be accepted