move version to attribute