updated update function to update only if timestamp, position or status is changed