creating a list of elements