worked in MA.java and main.xml