modified main.bmml