fixing a potential mistake by adding a new constructor parameter