implemented IM7 e IM8