adding branch comparision