apparently something went wrong, rewritten code for vectors again..