adjusted getlocationevents