move version to attr