absmin working for both values