applyData method