fixed minimizing problem in previous commit