fixed many thing in ex3