handling when location==empty