in several stages