added calc state