adding new constructor in state