updated query's first building/unit on application