fix unnecessary references