adding code to call ec2