tag magnitude vector implementation