integrate all the elements nicely