angles working with envelope idea, but a bit crazy. . Temporarily removed moving threshold