writing operations in node classes