added more functionality to precomputer