adjust code location for context