removing conditionals and unrolling loops.