fix on logic to generate vectores