try to implement max, min. Doesnt work