update method to fetch timestamp