make remoteIsUpToDate more readable by using local variables;