modified main