angle detection working