use code.toString() in aqlfunction create