aux functions using mmLib library