fixes #23 flip