change array[] to list for stockItems

more function to use
safer with size