got list_output to be maximum 4 in length