added getpos function for Fock types