cell density correction script