Please to rename by $f to have more consistent variable name (and avoid PMD issue). At least, you can use $fd ;)