added states and partials