added couple of loops for testing