write code to operate fiel