better var name
refactor to get rid of some globals