implemented more functions for fock stuff