min element 1 2 working, test