removing list modification
better name for method
variable renaming and cleanup