fixed code error before