adding First and internalstate