add State Duration func