seperate read coils function