added back binary flip when angle undefined