working on issue 7: integrated magnitudes