added a precompute script