replaced listinstances with ec2