added code for combined