But in the end there are two different lists (error , warnings) into which the values need to go , so how would i call it once.