add loc earlier