added instruction cost lookup