first steps of ssa optimization