constructor with default value