changed retry method