remove references to stock table