fixed arrays assignation and print