fixed position() function in peer