refactored airmar to pass by reference, not by pointer