add low stock state and some comments