modified marking to not mark empty lists