fixing type lookup