remove unnecessary references