start to move global variables
name is almost finished