before checkout branch improvement