created is last location function