some more precompution