modified method4 and submit hadoop methods