got rid of accidental global