BUFFALO, N.Y.- A Buffalo man who pleaded guilty to seriously injuring a toddler will spend the next 15 years behind bars.

Marcel Brooks, 25, admitted to shaking a-22-month-old boy at home in Tonawanda last October.

Police say Brooks was babysitting the child, who is still recovering from his injuries.

Before he was sentenced, Brooks tried to rescind his guilty plea and plead not guilty. The judge denied his request. Brooks said in court he plans to appeal. You can watch the exchange here:

(Warning: Brooks makes an obscene gesture at the end of the video)