optimize local variables, add strings