better way of providing elements