updating current position