Pools scramble to comply with new state law