constructor isn't working with default parameters