replace reset with checkout