spiral iteration