fix where is code func