update location directly in class