modified for different free -m formats