removing unresolved references