modified for mcmt project, shouldn't affect anything