moved global to regular