Title: Spectral evolution during dipping and flaring in low mass X-ray binaries