I need to solve the trig identity: (x stands for theta)

I get the first step1- (cos^2 x / 1 + sin x) = sin x

1 - ( 1 - sin ^ 2 x / 1 + sin x)And i dont understand the 3rd step

Can someone please explain to me how the third step is gotten?1-(1-sin x)

thanks