added state dependency