make it work with any number of elements