added spinning feature