fixing weird looking flip