rewrote and refactored the code for rotorhead
it all works via alert boxes