added insert location method