adding doubles logic in node