code error fixed