Retirement tax questions

You took out securities?  Like specific stocks?  Remember that you must return the dollar amount you withdrew, not the specific security.  For example, if the securities were worth $5000 when you pulled them out and $4500 when you put them back, then its only a partial rollover and the lost $500 is taxable income to you.  And if the securities were worth $5000 when you pulled them out and $6000 when you put them back, that counts as a return/rollover of $5000 and a contribution of $1000, which might or might not be allowable after considering all your other tax situations.