add function ConvertLocToAvlsLoc to change format of loc to avls