implement small mm test function