update the remote repo algorithm to latest