added pattern orientation