shakes when poops

by mike
(escondido,cali,usa)

My parakeet shakes its tail feathers. Is this just to clean it off.and its poop is green?