changed some of the temp list to vec