adding StateBuilder