wired my code together with George's code