fliplr
code simplification