added default parameter to constructor