1. bug: user global variable before declaring it is global;