m for each g