added border in loop