A city correction officer is under arrest, accused of setting the fire that ripped through a Brooklyn apartment building Thursday morning.
Yvette Randolph, 43, is charged with second-degree arson.
Investigators believe Randolph set the fire to get back at her ex-boyfriend.
Sources tell NY1 that the man used to live in the building located at 375 Chauncey Street in Bedford-Stuyvesant.
Twelve people, including three small children, had to be rescued after flames broke out Thursday morning inside the building.
Five people were taken to the hospital in critical condition.
Witnesses tell NY1 they saw a woman acting suspiciously around the building just before the fire started.
"I noticed the fire because I saw the in the first hallway right there, there were flames coming out of the floor basically. Then, I saw her close the doors and then walk down the stairs and walk off and stuff like that," said one witness.
"She had to think this over and say, 'OK, tomorrow, I'm just going to get up and burn the place down.' It was really wrong. You got babies in there. It's not right. And now, we're homeless until further notice," said one resident.
The Red Cross is providing emergency housing to three families who lost their homes in the fire.
In a statement, city Correction Commissioner Dora Schriro said, "Every man and woman serving in the NYC Department of Correction is saddened for all who were injured in the blaze. We wish for their speedy and complete recovery."
The Department of Correction says Randolph has been suspended without pay.