added dynamic direction rows