updating loop size for ec2