supporting loop with two items