fixed state but need to fix trailing comma