renamed variables to avoid mistakes in understanding their meaning