function now break vectors input into kernel elemnents, seems to work but not tested