remove local reference in local