extract angle in separate module