changed retries to attempts