fix ex 12
fix ex12 and ex13a