added bunch of images
cleaned scope and seperated hoisting