remove redundant references