simpler comment
move retries in constant - assign its value to local var instead of modifying it