add lastpos in Metadata