added default value function