fixed the flip commands
added flip