old repmat support