removing unused variables
Sharing anomalies