Using return parameter in dataForSegment
Made dataForSynapse use return parameter
Revert "Made dataForSynapse use return parameter"

This reverts commit fe1327c91dd7fcd1334d21b57abeeac3b310e0ac.
Revert "Using return parameter in dataForSegment"

This reverts commit 062f303987ec9724016b7aa46be0068574eb1c81.
Following convention