remove redundant scope