use the right way to handle intermedia data