moved functionality aroundin perlin and vectors files