tidier code, need larger EC2