min-max should be working