adds state method