In the given sentence, identify the segment which contains a grammatical error.
The assistant superintendent stepped down from his duties declaring that the jail was not take care of the inmates.
1
stepped down
2
was not take care
3
of the inmates
4
declaring that