prepares for curtain calculation

Signed-off-by: Levi Tan Ong <levi@byimplication.com>