been forgetting global variable