added hflip