ex 5 works better now but still not correct