tuning spinItem code