small fd helper method