remove retry function