changed position from vector to record