finalized location return function