auto generation of loactions