use elif to improve performance
implement a part of branch instruction