shared and code error