update the shadow function