working on check_ma