update, code adjustments

- getMaxOrMin visibility
- strict comparison.