correct ordering. Still no resource management.