generalize adjustStock