fixed upgraded check branching