cache
cache copied to clipboard
improve code readability by removing unnecessary 'elses'
alse fix colliding variable names