improved template for faster moving out of the gate