solve all Eclipse warnings

Eclipse warns if a variable is defined but not used.