modified code and deleted unused pics