rename state to task