update getstockbyID function