corrected error when copying and pasting global code