cleans up varible names and removes unnecessary variables