got rid of branching