got the output the way it should be there is a bug with the remove and
loading that makes the program not work propely.