added first heading and second heading processing;