finished general precomputer