Some bang-bang theorems