remade 1.2 without creating an array. Will ask whats best before I use the original solution that I commented out