make index calculation functions more readable instead of relying on magic numbers
make index calculation functions more readable instead of relying on magic numbers

cksystemsteaching/selfie,ChristianMoesl/selfie,cksystemsteaching/selfie,cksystemsteaching/selfie,ChristianMoesl/selfie