implicit global here and the next few lines