add max_position attribute to activity structure