make loc local variable