added vertical flip