flip functionality was added