how does ipl work1