removed outputmagotrquesense function since it wasn't being used