changed mis combined code