added default values with help of stevem