working with 3 elements. mostly working with more elements