change quality tag string to int